import request from '@/utils/request'

// 查询管理端-意见反馈列表

export function listFeedbackManager(query) {
  return request({
    url: '/manager/feedbackManager/list',
    method: 'get',
    params: query
  })
}

// 查询管理端-意见反馈详细
export function getFeedbackManager(id) {
  return request({
    url: '/manager/feedbackManager/' + id,
    method: 'get'
  })
}

// 保存管理端-意见反馈

export function saveFeedbackManager(data) {
  return request({
    url: '/manager/feedbackManager/save',
    method: 'post',
    data: data
  })
}

// 删除管理端-意见反馈

export function delFeedbackManager(id) {
  return request({
    url: '/manager/feedbackManager/' + id,
    method: 'delete'
  })
}

// 导出管理端-意见反馈

export function exportFeedbackManager(query) {
  return request({
    url: '/manager/feedbackManager/export',
    method: 'get',
    params: query
  })
}
// 管理端处理工单
export function workFeedbackManager(data) {
  return request({
    url: '/manager/feedbackManager/manageRevert',
    method: 'post',
    data: data
  })
}
// 查询发送的消息
export function findMessageById(id) {
  return request({
      url: '/manager/feedbackManager/listDetails?id=' + id,
      method: 'get'

  })
}

